import request from "@/utiles/request";
//获取作业列表
export const getWorkListAPI = (pageNo = 1, pageSize = 10) =>
  request.get(`/studentWork/list?pageNo=${pageNo}&pageSize=${pageSize}`);
//创建作业
export const createWorkAPI = (data) =>
  request.post("/studentWork/create", data);
//获取作业详情
export const getWorkDetalAPI = (id) =>
  request.get(`/studentWork/detail?workId=${id}`);
//删除学生作业
export const deleteStudentWorkAPI = (id) =>
  request.delete(`/studentWork/delete?workId=${id}`);
//删除作业
export const deleteHomeWorkAPI = (data) =>
  request.post("/studentWork/deleteFolder", data);
//上传作业
export const uploadWorkAPI = (parentId, workId, data) =>
  request.post(
    `/studentWork/upload?parentId=${parentId}&workId=${workId}`,data
  );
